home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1045 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  783 b 

  1. From: Julian Reschke <reschke@GOEDEL.UNI-MUENSTER.DE>
  2. Subject: Re: warnings
  3. Date: Fri, 18 Feb 94 13:53:48 MET DST
  4. In-Reply-To: <9402181223.AA06285@topo>; from "Thierry Bousch" at Feb 18, 94 1:23 pm
  5.  
  6. > Hi Julian,
  7. > > Here are some diffs to get rid of some warnings:
  8. > > 761c761
  9. > > <     if (( r = (*fc.fs->getxattr)(&fc, &xattr) < 0 ))
  10. > > ---
  11. > > >     if (0 != ( r = (*fc.fs->getxattr)(&fc, &xattr) < 0 ))
  12. > it seems that Pure C had a good reason to issue this warning: I guess that
  13. > the line should have been:
  14. >     if ((r = (*fc.fs->getxattr)(&fc, &xattr)) < 0)
  15. > which is not the same, since the assigment operator has lower
  16. > precedence than the comparison operator.
  17. > Thierry.
  18.  
  19. Indeed!
  20.  
  21. BTW: sorry for sending non-context diffs; I'll do it better next week...
  22.